﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcBoost.EntityFramework.Validation
{
    public interface IDbContextResourceValidator<TContext, TResource>: IConditionalActivity<TContext,TResource>
        where TContext: DbContext
        where TResource : class
    {
        bool IsValid(TContext context, TResource resource, bool isCreating);

        string ValidationMessage { get; }
    }
}
